home *** CD-ROM | disk | FTP | other *** search
/ Chip: Hang es video / CHIP_ZENESZERKESZTO_2005.ISO / audio_3 / visual / robotfunk / setup.exe / {app} / main.dxr / ui_160.ls < prev    next >
Encoding:
Text File  |  2003-11-19  |  955 b   |  41 lines

  1. property md
  2. global preloadlist, select, fpslist, curscript
  3.  
  4. on mouseDown me
  5.   md = 1
  6. end
  7.  
  8. on mouseLeave me
  9.   md = 0
  10. end
  11.  
  12. on mouseUp me
  13.   if md then
  14.     curscript = "savebank"
  15.     savepath = baGetFilename("save", "c:", "untitled.bnk", "Flowmotion Banks|*.bnk", 32, "Save this Bank", 0, 400, 300)
  16.     if savepath = EMPTY then
  17.       exit
  18.     end if
  19.     fileLink = new(xtra("vList"), savepath)
  20.     pl = []
  21.     repeat with i = 1 to 48
  22.       pl[i] = []
  23.       repeat with j = 1 to preloadlist[i].count
  24.         if preloadlist[i].count >= j then
  25.           if preloadlist[i][j].ilk = #image then
  26.             pl[i][j] = preloadlist[i][j].duplicate()
  27.             preloadlist[i][j] = pl[i][j]
  28.           end if
  29.         end if
  30.       end repeat
  31.       pl[i][j + 1] = member(i, "thumbnails").image.duplicate()
  32.       if i < 25 then
  33.         pl[i][j + 2] = fpslist[i]
  34.         next repeat
  35.       end if
  36.       pl[i][j + 2] = 1
  37.     end repeat
  38.     write(fileLink, pl)
  39.   end if
  40. end
  41.